﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Rung.Soft.Jx3Tookit.Addon.AboutAddon
{
    public partial class MainUC : UserControl
    {
        public MainUC()
        {
            InitializeComponent();
        }

        private void MainUC_Resize(object sender, EventArgs e)
        {
            Size controlSize = this.Size;
            Size ucSize = new Size((int)(controlSize.Width * 0.7), (int)(controlSize.Height * 0.7));

            pnMain.Size = ucSize;
            pnMain.Location = new Point((controlSize.Width - ucSize.Width) / 2, (controlSize.Height - ucSize.Height) / 2);
        }
    }
}
